mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 13:42:51 +08:00
Update test_toolcall.py
Former-commit-id: b5007afb193647c905e44037dc77ab8bfa5da832
This commit is contained in:
parent
e3e7b4dc33
commit
ac89ec9ced
@ -5,6 +5,7 @@ from typing import Sequence
|
||||
from openai import OpenAI
|
||||
from transformers.utils.versions import require_version
|
||||
|
||||
|
||||
os.environ["OPENAI_BASE_URL"] = "http://192.168.0.1:8000/v1"
|
||||
os.environ["OPENAI_API_KEY"] = "0"
|
||||
require_version("openai>=1.5.0", "To fix: pip install openai>=1.5.0")
|
||||
|
Loading…
x
Reference in New Issue
Block a user