-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from YeetCode-devs/staging/prathamdby
- Loading branch information
Showing
4 changed files
with
11 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
# Copyright (c) 2024, YeetCode Developers <[email protected]> | ||
|
||
from g4f.client import Client | ||
from g4f.models import default | ||
from g4f.models import gpt_4 | ||
from g4f.Provider import Bing | ||
|
||
|
||
|
@@ -24,17 +24,16 @@ def generate_response() -> str: | |
|
||
try: | ||
response = client.chat.completions.create( | ||
model=default, | ||
model=gpt_4, | ||
messages=[ | ||
{"role": "user", "content": "Say hi, with your response starting with START and ending with END"} | ||
], | ||
) | ||
return response.choices[0].message.content | ||
except: | ||
print("ERROR: Could not create a prompt!") | ||
raise | ||
|
||
return response.choices[0].message.content | ||
|
||
|
||
class TestOutput: | ||
def test_output(self): | ||
|
This file was deleted.
Oops, something went wrong.