Comments (2)
@AprilJoy Try calling the openai API on its own with this api key and see if you get the same error
from deepeval.
I used this and can get the correct respond.
import os
import json
from openai import OpenAI
messages= [ {"role": "user", "content": "你好,一个高级工程师想学习 Azure,他已经有 10 年的开发经验,可以用哪些资料做参考"} ]
client = OpenAI(
# api_key=os.environ.get("OPENAI_API_KEY"),
api_key= api_key,
base_url = "https://burn.hair/v1"
)
response = client.chat.completions.create(model="gpt-3.5-turbo",
messages=messages
)
print(response.choices[0].message)
from deepeval.
Related Issues (20)
- Conversation Evaluations
- MMLU stopped working
- Invalid value for 'top_logprobs': must be less than or equal to 5 for AzureOpenAi Models
- Update to tenacity 8.4.1 HOT 3
- Bug in G-Eval metrics when calculating the weighted_summation_score
- Disable Update Warnings HOT 1
- Error when generating an evaluation dataset according to the official documentation
- `GSM8KTemplate` does not yield a standard template format for 0-shot chain-of-thought prompting. HOT 1
- Multimodal evaluation HOT 1
- Error while using the most popular opensource chat models HOT 2
- Enhancing DeepEval's Vertex AI implementation sample HOT 1
- "deepeval login --api-key" throws error “TypeError: Option() missing 1 required positional argument: 'default’"
- The Colab notebook left as an example in the LLamaIndex Docs is not working! HOT 2
- Stuck while suing summarisation metric HOT 1
- TypeError: Synthesizer.generate_goldens() got an unexpected keyword argument 'enable_breadth_evolve' HOT 2
- Typo in bias metric (too many values to unpack (expected 2)) HOT 3
- AttributeError: 'str' object has no attribute 'content' HOT 1
- deepeval v0.21.71 - v 0.21.73 MMLU prediction results are wrong and the task scores and overall score are always 0 for Mistral7B and Gemma2B models HOT 5
- data.generate_goldens throw TypeError: Synthesizer.generate_goldens() got an unexpected keyword argument 'enable_breadth_evolve' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepeval.